//用户模块
export default {
  namespaced: true,
  state() {
    return {
      // 用户信息
      profile: {
        id: '',
        avatar: '',
        nickname: '',
        account: '',
        mobile: '',
        token: '',
        account: ''
      },
      name: '小红'
    }
  },
  mutations: {
    setUser(state, payld) {
      state.name = payld
    },
    setUser(state, payld) {
      state.profile.token = payld
      state.profile.account = payld.userName
    }
  }
}
